/** 登录页面请求接口 **/
import request from '@/utils/request'

/**
 * 登录
 * @param loginForm
 */
export function loginByUsername(loginForm) {
  return request({
    url: '/user/login',
    method: 'post',
    data: loginForm
  })
}

export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}

export function getUserInfo(token) {
  return request({
    url: '/user/info',
    method: 'get',
    params: { token }
  })
}

